<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\ResourcePath as ResourcePathModel;

class ResourcePathService
{
    /**
     * 社群资源1
     * @param array $where
     * @return int
     */
    public static function findResourcePathValue($where)
    {
        return ResourcePathModel::findResourcePathValue($where);
    }

    /**
     * 社群资源2
     * @param $where
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function getResourcePath($where)
    {
        return ResourcePathModel::getResourcePath($where);
    }

    /**
     * 创建社群资源
     * @param $data
     * @return ResourcePathModel|\think\Model
     */
    public static function createResourcePath($data)
    {
        return ResourcePathModel::createResourcePath($data);
    }

    /**
     * 删除社群资源
     * @param $where
     * @return bool
     */
    public static function delResourcePath($where)
    {
        return ResourcePathModel::delResourcePath($where);
    }
}